//
//  DataStorage.h
//  HandyDialer
//
//	Developed by Team Synergy
//  Created by Jordan Tseng on 10/29/11.
//  Coders: Jacky Li and Jordan Tseng 
//  Graphic Designer: Derek Fong
//  Developers: Brad Lisson, Derek Fong, Jacky Li, Jeremy Gangoso, Jordan Tseng
//  Copyright HandyDialer 2011. All rights reserved.
//
//  Class Description: Stores one instance of the class for transfering from ResultDirecotry to SearchDirectory
//                     
//  Member Variables:
//  NSString *reverseNumber
//      - the phone number that is going to be passed to inside search directory
//	NSString *searchName
//		- the keyword to be used in searching contacts
//	ABRecordRef currentContact
//		- the reference to current contact being used
//
//  Member functions:
//  + (DataStorage *)sharedData
//      - single instance constructor
//  + (void)setReverseNumber:(NSString *)number
//      - store the phone number to be searched in phone directory
//  + (NSString *)getReverseNumber
//      - retrieve number to be searched in phone directory
//	+ (void)setSearchName:(NSString *)name;
//		- store the contact keyword that is to be searched
//	+ (NSString *)getSearchName
//		- retrieve the contact keyword stored
//	+ (void)setCurrentContact:(ABRecordRef)record
//		- store the reference to the current contact in use
//	+ (ABRecordRef)getCurrentContact
//		- retrieve the reference to the current contact in use

#import <Foundation/Foundation.h>
#import <AddressBook/AddressBook.h>

@interface DataStorage : NSObject
{
	NSString *reverseNumber;
	NSString *searchName;
	ABRecordRef currentContact;
}


+ (DataStorage *)sharedData;

- (void)setReverseNumber:(NSString *)number;


- (NSString *)getReverseNumber;

- (void)setSearchName:(NSString *)name;

- (NSString *)getSearchName;

- (void)setCurrentContact:(ABRecordRef)record;

- (ABRecordRef)getCurrentContact;

@end

